/**
 * Created by user on 17/2/16.
 */
let KoaRouter = require('koa-router');

let validator = require('./validator');
let SiteController = require('../controllers/SiteController');
const router = new KoaRouter();

router.get('/', validator({
    isAPI: false,
    policy: {
        scope: 'user'
    }
}), SiteController.index);
router.get('/404', SiteController.NotFound);
router.get('/500', SiteController.InternalError);
router.get('/logout', SiteController.logout);

module.exports = router;
